<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的订单</title>
    <link rel="stylesheet" href="/shop/shop.css" />
</head>
<body>
    <div class="container">
        <?php
            require_once("userTip.php");
        ?>
        <table class="order" >
            <thead>
                <tr>
                    <td>订单编号</td>
                    <td>总数量</td>
                    <td>总金额</td>
                    <td>操作</td>
                </tr>
            </thead>
            <tbody>
                <?php
                    require_once("selectOrder.php");
                    foreach ($orderArr as $order) {
                        echo "<tr>
                            <td>{$order['o_no']}</td>
                            <td>{$order['o_num']}</td>
                            <td>￥ {$order['o_total']}</td>
                            <td>
                                <a href=\"/shop/detail.php?oid={$order['o_id']}&no={$order['o_no']}\">详情</a>
                            </td>
                        </tr>";
                    }
                ?>
            </tbody>
        </table>
    </div>
</body>
</html>
